<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>博客{notempty name='info'}修改{else /}新增{/notempty}</title>
</head>
<body>
<form action="" method="post">
    <table>
        <tr>
            <td>博客标题</td>
            <td><input type="text" name="title" value="{notempty name='info'}{$info.title}{/notempty}" /></td>
        </tr>
        <tr>
            <td>博客内容</td>
            <td><script id="container" name="content"  style="height: 500px;width: 500px;" type="text/plain">
                {notempty name='info'}{$info.content|raw}{/notempty}
            </script></td>

        </tr>
            <td><select name="cateid">  <!--- 表单要列出博客分类 --->
                {foreach $list as $key=>$vo}
                <option value="{$vo.id}" {notempty name='info'}{if $info['cateid'] == $vo['id']}selected="selected"{/if}{/notempty} >{$vo.cate_name}</option>
                {/foreach}
            </select></td>
        </tr>
        <tr>
            <td><input type="submit" value="博客提交" /></td>
        </tr>
    </table>
</form>
    <!-- 配置文件 -->
    <script type="text/javascript" src="/UEditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/UEditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>
</body>
</html>